﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CPSite.Master" AutoEventWireup="true" CodeBehind="SemesterList.aspx.cs" Inherits="WebTemplate.ControlPanel.Account.SemesterList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <fieldset>
        <legend>Semester List</legend>
        <div class="form">
            <asp:GridView ID="Semester" runat="server" PagerStyle-CssClass="Pagger" AllowPaging="true" AllowSorting="true" PageSize="10" DataKeyNames="ID" GridLines="None" AutoGenerateColumns="false" OnPageIndexChanging="Semester_PageIndexChanging" OnSorting="Semester_Sorting" OnRowCommand="Semester_RowCommand">
                <Columns>
                    <asp:BoundField DataField="Start" HeaderText="Start" SortExpression="Start" />
                    <asp:BoundField DataField="End" HeaderText="End" SortExpression="End" />
                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                    <asp:ButtonField CommandName="DeleteSemester" ButtonType="Link" Text="Delete" />
                    <asp:HyperLinkField Text="Edit" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="~/Account/SemesterDetails.aspx?id={0}" />
                </Columns>
            </asp:GridView>
            <asp:Button ID="Add" runat="server" Text="Add Semester" CssClass="formbutton" OnClick="Add_Click" />
        </div>
    </fieldset>
</asp:Content>
